package com.example.administrator.wmsdemo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);


    }

    public void startWindow(View view) {
        startService(new Intent(this, WMSService.class));
        finish();
    }


//    @Override
//    public boolean onTouchEvent(MotionEvent event) {
//
//        Log.e("JohnLog", "OnTouchEvent");
//
//        startService(new Intent(this, WMSService.class));
//        finish();
//        return super.onTouchEvent(event);
//    }
}
